﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
    response.setHeader("Cache-Control","no-store, must-revalidate");
    response.setHeader("Pragma","no-cache"); 
    response.setDateHeader ("Expires", 0); 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta http-equiv="Pragma" content="no-cache">   
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">     
<meta http-equiv="Expires" content="Wed, 26 Feb 1997 08:21:57 GMT">   
<title>comusee登录</title>
<link href="/style/login/login.css" rel="stylesheet" type="text/css" />
<SCRIPT LANGUAGE="JavaScript">
<!--
var gIEVersion = "";	//浏览器名字
var gVersionNum = 0;	//浏览器版本号
function fCheck(){
	var bOk = false;
	var s = "";
	var fm = document.form;
	s = fm.style.value;

	fm.username.value = fTrim(fm.username.value); //Trim the input value.
	if( fm.username.value =="") {
		document.getElementById("error_div").innerHTML = "请输入你的用户名";
		fm.username.focus();
		return false;
	}

	if( fm.password.value.length =="") {
		document.getElementById("error_div").innerHTML = "请输入你的密码";
		fm.password.focus();
		return false;
	}
}

function fTrim(str)
{
	return str.replace(/(^\s*)|(\s*$)/g, "");
}

function $( id ){return document.getElementById( id );}
function refresh(){
	$("verifycodeId").src = "/randImg?"+Math.random();
}

//-->
</SCRIPT>
</head>
<body>
<div class="page" id="divPage">
  <div class="head"> <a href="" title="系统官网">${sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message} 
  系统官网</a> | <a href="" target="_blank">帮助</a> | <a href="" target="_blank">建议</a> </div>
  <div class="content">
    <div class="logo">
      <h1><img src="/style/login/logo.gif" alt="登录" /></h1>
      <h2></h2>
    </div>
    <div class="login">
      <h3>登录comusee旅行社管理系统</h3>
      <!-- <form method="post" action="" name="form" onSubmit="return fCheck()">     -->
      <form method="post" id="loginForm" name="form" onsubmit="return fCheck()"  action="/user/login">
        <div class="fi">
          <label class="lb">用户名</label>
          <input id="iptUser" name="username" value=""  type="text" class="ipt-t no-ime" onfocus="this.className+=' ipt-t-focus'" onblur="this.className='ipt-t no-ime'" tabindex="1" maxlength="20"/>
          </div>
        <div class="fi">
          <label class="lb">密　码</label>
          <input id="iptPwd" type="password" class="ipt-t" onfocus="this.className+=' ipt-t-focus'" onblur="this.className='ipt-t no-ime'" name="password" tabindex="2" maxlength="20" />
          <a class="foget" href="" target="_blank">忘记密码？</a> </div>
<%--         <div class="fi">
          <label class="lb">验证码</label>
          <input id="iptPwd" type="text" class="ipt-t" onfocus="this.className+=' ipt-t-focus'" onblur="this.className='ipt-t no-ime'" name="validateCode" tabindex="3" maxlength="4" style="width:100px;" />
          <img id="verifycodeId" src="/randImg?${math.random}" alt="点击刷新" onclick="refresh();" style="vertical-align: middle;margin-left: 5px;cursor: pointer;"/>
        </div>
        <div class="fi fi-nolb">
          <label class="autologin" onMouseOver="document.getElementById('autoLoginDiv').style.display='block'" onMouseOut="document.getElementById('autoLoginDiv').style.display='none'" for="rem_U">
            <input type="checkbox" class="ipt-c" name="_spring_security_remember_me" id="rem_U" />
            两周内自动登录</label>
          <div id="autoLoginDiv">为了您的信息安全，请不要在网吧或公用电脑上使用此功能！</div>

        </div> --%>
        <div class="fi fi-btn">
          <input type="submit" class="ipt-b" value="登　录" onmouseover="this.className+=' ipt-b-hover'" onmouseout="this.className='ipt-b'" name="enter.x" tabindex="4" />
          <span class="err" id="error_div"></span> </div>

      </form>
    </div>
    <div class="intro intro-1" id="divIntro"></div>
  </div>
</div>
<script type="text/javascript">
window.onresize = function(){
	var minh = 675;
	var minw = 960;
	$("divPage").style.height = document.documentElement.offsetHeight < minh ? minh+"px" : "100%";
	$("divPage").style.width = document.documentElement.offsetWidth < minw ? minw+"px" : "auto";
}

window.onresize();
if( $("iptUser").value=="") {
	$("iptUser").focus();
} else {
	$("iptPwd").focus();
}
</script>

</body>
</html>